﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

namespace CTEA_INDIA
{
    public partial class Artist_Information : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BAL.conn.connectionString = ConfigurationManager.ConnectionStrings["CTEA"].ConnectionString;
            if (!IsPostBack)
            {
                if (Session["UserID"] == null)
                {
                    Response.Redirect("Default.aspx");
                }
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string Artist_Name = txtArtistName.Text;
            string Address = txtAddress.Text;
            string Contact_No = txtContactNo.Text;
            string Commitment = cmbCommitment.Text;
            string Feedback = txtFeedback.Text;
            
            BAL.Customers.ArtistInfo(Artist_Name, Address, Contact_No, Commitment, Feedback);


            spnMsg.Visible = true;
            spnText.InnerHtml = "Your details have been submitted.";

            txtArtistName.Text = "";
            txtContactNo.Text = "";
            txtAddress.Text = "";
            cmbCommitment.SelectedIndex = 0;
            txtFeedback.Text = "";
            
        }
    }
}